package com.dhcc.crftool.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author deck
 * @Date 2020/3/1
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "crf_filldata")
@ApiModel(value = "CRF录入数据存储表")
public class CRFFillData extends Model<CRFFillData> {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    @TableField("id")
    private Integer id;

    @ApiModelProperty(value = "表单guid")
    @TableField("form_id")
    private String formId;

    @ApiModelProperty(value = "病人id")
    @TableField("patient_id")
    private String patientId;

    @ApiModelProperty(value = "关联访视id")
    @TableField("num_id")
    private Integer numId;

    @ApiModelProperty(value = "关联操作id")
    @TableField("operater_id")
    private Integer operaterId;

    @ApiModelProperty(value = "关联的审核id")
    @TableField("data_audit_guid")
    private Integer dataAuditGuid;

    @ApiModelProperty(value = "操作时间")
    @TableField("op_data_time")
    private  Integer opDataTime;

    @ApiModelProperty(value = "表单备录入的数据")
    @TableField("crf_data")
    private Object crfData;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
